<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<script type="text/javascript" src="js/calendar.js"></script>
		<base href="<%=basePath%>">

		<title>My JSP 'createProject.jsp' starting page</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<style type="text/css">
input {
	border: 0px;
}

textarea {
	border: 0px
}
</style>
		<SCRIPT type="text/javascript" src="js/jquery.min.js"></SCRIPT>
		<script language="javascript" type="text/javascript"
			src="js/createProject.js" charset="utf-8"></script>
		<script type="text/javascript" src="js/jquery.form.js" charset="utf-8"></script>
	</head>

	<body>
		<form name="prjform" id="prjform" action="projectManage!createProject"
			method="post">
			<div align="center">
				<h2>
					创建项目
				</h2>
				<table border="1px" align="center"
					style="width: 800px; border-collapse: collapse; border: 1px">
					<tr>
						<td width="15%">
							项目名称
						</td>
						<td colspan="4">
							<input type="text" id="prjname" name="project.prjName"
								style="width: 100%" />
							<s:fielderror></s:fielderror>
						</td>
					</tr>
					<tr>
						<td width="15%">
							项目经理
						</td>
						<td width="20%">
							<select name="project.Manager">
								<c:forEach items="${developers}" var="developer">
									<option value="${developer.developerName}">
										${developer.developerName}
									</option>
								</c:forEach>
							</select>
						</td>
						<td width="15%">
							市场人员
						</td>
						<td width="40%">
							<select name="project.marketDep">
								<c:forEach items="${developers}" var="developer">
									<option value="${developer.developerName}">
										${developer.developerName}
									</option>
								</c:forEach>
							</select>
						</td>
					</tr>
					<tr>
						<td rowspan="2">
							项目委托方
						</td>
						<td rowspan="2" valign="bottom">
							<input type="text" name="project.projectProxy"
								style="width: 100%;" />
						</td>
						<td>
							客户负责人
						</td>
						<td>
							<input type="text" name="project.clientName" style="width: 100%" />
						</td>
					</tr>
					<tr>
						<td>
							负责人联系方式
						</td>
						<td>
							<input type="text" name="project.contactMethod"
								style="width: 100%" />
						</td>
					</tr>
					<tr>
						<td>
							项目简介
						</td>
						<td colspan="5">
							<textarea name="project.prjDesc" rows="6" cols="70"
								style="overflow: auto; width: 100%"></textarea>
						</td>
					</tr>
					<tr>
						<td>
							项目背景
						</td>
						<td colspan="5">
							<textarea name="project.projectBack" rows="6" cols="70"
								style="overflow: auto; width: 100%"></textarea>
						</td>
					</tr>
					<tr>
						<td>
							项目要求
						</td>
						<td colspan="5">
							<textarea name="project.projectRequire" rows="6" cols="70"
								style="overflow: auto; width: 100%"></textarea>
						</td>
					</tr>
					<tr>
						<td>
							项目目标
						</td>
						<td colspan="5">
							<textarea rows="6" name="project.projectObjective" cols="70"
								style="overflow: auto; width: 100%"></textarea>
						</td>
					</tr>
					<tr>
						<td rowspan="3">
							项目估计
						</td>
						<td>
							规模估计
						</td>
						<td colspan="3">
							<span> <input type="text" name="project.projectScale"id="scale" style="width: 50%" /> 人月 </span>
						</td>
					</tr>
					<tr>
						<td>
							工期估计
						</td>
						<td colspan="3">
							开始时间
							<input type="text" onfocus="calendar()" name="project.startTime"
								style="width: 120px" />
							截止时间
							<input type="text" onfocus="calendar()" name="project.endTime"
								style="width: 120px" />
						</td>
					</tr>
					<tr>
						<td>
							成本估计
						</td>
						<td colspan="3">
							<input type="text" name="project.prjMoney" id="money"
								style="width: 100%" />
						</td>
					</tr>
					<tr>
						<td colspan="2" align="center">
							<input type="button" id="create" value="创建" />
						</td>
						<td></td>
						<td colspan="2">
							<input type="button" value="返回" />
						</td>
					</tr>
				</table>
			</div>
		</form>
	</body>

</html>
